package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_header_container_order")
public class HeaderContainerOrderDo extends Model<HeaderContainerOrderDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("header_container_id")
    private Long headerContainerId;

    @TableField("first_vessel_order_id")
    private Long firstVesselOrderId;
    @TableField("order_type")
    private Integer orderType;
    @TableField("value")
    private Double value;
    @TableField("rate")
    private Double rate;
    @TableField("set_price_flag")
    private Integer setPriceFlag;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("bill_id")
    private Long billId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
